/**
 * 主入口文件
 * @author xiaoqiang <465633678@qq.com>
 * @created 2018/10/30 21:47:48
 */
const Koa = require('koa')
const routerMiddleware = require('./router')
const app = new Koa()
app.use(routerMiddleware())
// app.use(async (ctx, a, b, c, d) => {
//   console.log(a,b,c,d)
//   ctx.body = '123'
// })
app.listen(3000)
console.log('服务启动于3000端口')